package com.personal.bo;

import com.personal.vo.ShopCartVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(value = "CreateOrderBO",description = "创建订单使用的bo")
public class CreateOrderBO {

    @ApiModelProperty("用户id")
    @NotNull(message = "用户id不能为空")
    private Integer userId;

    @ApiModelProperty("订单总价格")
    @NotNull(message = "订单总价格不能为空")
    private Integer totalAmount;

    @ApiModelProperty("资源列表")
    @NotNull(message = "资源列表不能为空")
    private List<ShopCartVO> shopCartVOList;

}
